#!/bin/bash
#shell for rodinia benchmark
echo 'start'
#!/bin/bash
#shell for rodinia
echo 'start'

# the path for the gpgpu config
gpgpu_path="/home/ming/gpgpu/gpgpu4/gpgpu-sim_distribution/configs/tested-cfgs/SM2_GTX480"

echo 'the config file path ='
echo $gpgpu_path

# judge that whether the config file is in this folder
CRTDIR=$(pwd)
if [ ! -f "./gpgpusim.config" ];then
        echo "cp the file"
        cp -r "$gpgpu_path/." "$CRTDIR"
else
        echo "already have the file"
fi

make

# the command is the command in the run file
#ex: ./bfs ../../data/bfs/graph1MW_6.txt >>out.log 2>&1
chmod 755 run
./run


